package com.woniuxy.car.boss.app.apiImpl;

import cn.hutool.core.bean.BeanUtil;
import com.woniuxy.car.boss.client.UserBossClient;
import com.woniuxy.car.boss.param.user.BossAddPlatParam;
import com.woniuxy.car.common.resultcode.Result;
import com.woniuxy.car.user.client.PlatformAccountClient;
import com.woniuxy.car.user.client.param.AddPlatParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.net.UnknownHostException;

@RestController
@Slf4j
public class UserBossApiImpl implements UserBossClient {
//    @Resource
//    private PlatformAccountClient platformAccountClient;
//
//    @Override
//    public Result addPlatformAccount(BossAddPlatParam bossAddPlatParam) {
//        log.info("请求参数：{}",bossAddPlatParam);
//        AddPlatParam addPlatParam = BeanUtil.copyProperties(bossAddPlatParam, AddPlatParam.class);
//        return platformAccountClient.addPlatformAccount(addPlatParam);
//    }
//
//    @Override
//    public Result PlatLogin(String platformAccountName, String platformAccountPassword) throws UnknownHostException {
//        log.info("请求参数：{},{}",platformAccountName,platformAccountPassword);
//        return platformAccountClient.PlatLogin(platformAccountName,platformAccountPassword);
//    }
//
//    @Override
//    public Result queryPlatAccount() {
//        log.info("无参数");
//        return platformAccountClient.queryPlatAccount();
//    }
}
